﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace SharpWeb
{
    public class SharpHttpModule : IHttpModule
    {
        public void Dispose()
        {
            throw new NotImplementedException();
        }
        private HttpApplication app;
        private HttpContext context;
        private HttpRequest request;
        public void Init(HttpApplication _context)
        {
            ControllerBuilder.Current.SetControllerFactory(new SharpControllerFactory());
            app = _context;
            //request = app.Request;
            context = app.Context;
            _context.BeginRequest += context_BeginRequest;
            _context.EndRequest += context_EndRequest;
        }

        void context_EndRequest(object sender, EventArgs e)
        {

        }

        void context_BeginRequest(object sender, EventArgs e)
        { 
        }
    }
}
